Bug 660730: Use GStatBuf for portability
authorChun-wei Fan <fanchunwei@src.gnome.org>
Mon, 3 Oct 2011 15:25:33 +0000 (23:25 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Mon, 3 Oct 2011 15:25:33 +0000 (23:25 +0800)
commiteb8c2dfae297f340279e2a1c848b14584f0c1dc7
treeaa20ac644e03935e3afaa516aeca039a33fcb68f
parent25e65dc1b59527badfef052f988639c1ef22f22d
Bug 660730: Use GStatBuf for portability

Thanks to Kean Johnston for pointing this out.

There are a few places in GTK that use "struct stat",
and then g_stat(), rather than using GStatBuf.This breaks things on
Windows. Since the size of struct stat can vary depending on other
flags specified, this has the potential to cause overwrites and is
trivial to fix.

Based on patch submitted by Kean Johnston
gtk/gtkiconcache.c
gtk/gtkicontheme.c
gtk/gtkrecentmanager.c
gtk/updateiconcache.c